<%@ page language="java" contentType="text/html; charset=utf-8"   pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/meta.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
<script type="text/javascript" src="${ctx}/js/select-ui.min.js"></script>
	<script charset="utf-8" src="${ctx}/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="${ctx}/kindeditor/lang/zh_CN.js"></script>

  <script type="text/javascript">

	var editor;
	KindEditor.ready(function(K){
		editor = K.create("#down_content",{
			cssPath:'${ctx}/kindeditor/plugins/code/ke.css',
			uploadJson : '${ctx}/kindeditor/jsp/upload_json.jsp',
			fileManagerJson : '${ctx}/kindeditor/jsp/file_manager_json.jsp',
			items : [
						'fontname', 'fontsize', '|', 'forecolor', 'code','hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', '|', 'image' ] 
						 
		});
		editor.sync();
	});
	var abstractEditor;
	KindEditor.ready(function(K){
		abstractEditor = K.create("#down_abstract",{
			cssPath:'${ctx}/kindeditor/plugins/code/ke.css',
			uploadJson : '${ctx}/kindeditor/jsp/upload_json.jsp',
			fileManagerJson : '${ctx}/kindeditor/jsp/file_manager_json.jsp',
			items : [
						'fontname', 'fontsize', '|', 'forecolor', 'code','hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', '|', 'image' ] 
						 
		});
		abstractEditor.sync();
	});
	

</script>

  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
 
});
</script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">下载编辑</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    
 <form action="${ctx}/down/saveDown" method="post"   id="downForm">
    <input type="hidden" name="bcDownId" value="${bcDown.bc_down_id}" />
    <ul class="forminfo">
    <li><label>所属栏目<b>*</b></label>  
    <div class="vocation">
    <select class="select1" name="navId" value="${bcDown.bc_navigation_id}">
    <c:forEach items="${downnavs}" var="downnav">
    	<option value="${downnav.bc_navigation_id }">${downnav.nav_name }</option>
    </c:forEach>
    
    </select>
    </div>
    
    </li>
       <li><label>下载名称<b>*</b></label><input name="downName" type="text" class="dfinput" value="${bcDown.down_name}"  style="width:518px;"/></li>
    <li><label>下载摘要<b>*</b></label>
    <textarea id="down_abstract"  name="downAbstract" style="width:700px;height:250px;border-width:1px;border-style:solid;border-color:#bababa #e9e9e9 #e9e9e9 #bababa;">${bcDown.down_abstract}</textarea>
    </li>
    <li><label>主要内容<b>*</b></label>
    <textarea id="down_content"  name="downIntro" style="width:700px;height:450px;border-width:1px;border-style:solid;border-color:#bababa #e9e9e9 #e9e9e9 #bababa;">${bcDown.down_intro}</textarea>
    </li>
     <li><label>下载地址</label><input name="downAdd" type="text" class="dfinput" value="${bcDown.down_addr}"  style="width:518px;"/></li>
     <li><label>关键字</label><input name="downKeyWord" type="text" class="dfinput" value="${bcDown.key_word}"  style="width:518px;"/></li>
    <li><label>&nbsp;</label><input  type="button" onclick="check()" class="btn" value="马上发布"/></li>
     <li><font>${msg }</font></li></ul>
     </form>
	</div> 
    </div>
<script  type="text/javascript">
	function check(){
		editor.sync();
		abstractEditor.sync();
		 $('#downForm').submit();
	}
</script>

</body>

</html>
